package com.jbh.request

import com.jbh.request.response.BaseResponse
import okhttp3.Call
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Path
import rx.Observable

interface ApiKZ {

    /**
     * 使用 json 对象上传
     *
     * @param api
     * @param requestBody
     * @return
     */
    @POST("{api}")
    fun apiPost(@Path("api") api: String, @Body requestBody: RequestBody?): Observable<BaseResponse>


    @POST("{api}")
    fun apiPost1(@Path("api") api: String, @Body requestBody: RequestBody?): retrofit2.Call<BaseResponse>

}